
class A(object):
    def __init__(self):
        self.a = 1
    def get(self):
        return self.a
    def set(self, i):
        self.a = i

def test(A, i):
    print A.get()
    A.set(i)
    print A.get()

a = A()
test(a, 8)
print a.get()